package com.xyoto.community.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 话题审核状态映射类
 */
public class TopicAuthenticationStatusMap {
    private static Map<Integer,String> authenticationStatusMap = new HashMap<>();
    static{
        authenticationStatusMap.put(1,"待审核");
        authenticationStatusMap.put(2,"审核通过");
        authenticationStatusMap.put(3,"审核不通过");
    }

    /**
     * 根据int类型的审核状态获取对应的中文意思
     * @param authenticationStatusInt int类型的审核状态
     * @return 审核状态对应的中文意思
     */
    public static String getAuthenticationStatusStr(Short authenticationStatusInt){
        String authenticationStatusStr = authenticationStatusMap.get(authenticationStatusInt.intValue());
        return authenticationStatusStr == null ? "":authenticationStatusStr;
    }
 }
